﻿using System;
using System.Collections.Generic;
using System.Text;

namespace designmodule.behavioralmodule.visitor
{
    public class Main
    {
        void main()
        {
            var o = new ObjectStructure();
            o.Attach(new ConcreteElementA());
            o.Attach(new ConcreteElementB());

            var v1 = new ConcreteVisitor1();
            var v2 = new ConcreteVisitor2();

            o.Accept(v1);
            o.Accept(v2);
        }
    }
}
